package com.lu.domain.impl;

import com.lu.domain.Sell;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("sell")
public class SellImpl implements Sell {
    @Value("张三")
    private String name;

    /*public void setName(String name) {
        this.name = name;
    }*/

    @Override
    public Integer selling(Integer money,String id) {
        System.out.println("selling"+name+money+id);
        return money;
    }
}
